ListView callback function

Hi, I want to make a callback function to  a list view, so when a user clicks on an item in the listview the objects parameter will be filled into a textbox.

Could somebody help, I just can't figure out the set/get methods syntax.


valikund - Tue Sep 01 04:19:09 EDT 2015

Re: ListView callback function
Wolfgang Uhr - Tue Sep 01 05:10:40 EDT 2015

Hi

The listView has a different callback and you have to define allways three of them:

void doSelect(DBE dbeListView, int iLine) {};

void doDeselect(DBE dbeListView, int iLine) {};

void doActivate(DBE dbeListView, int iLine) {};

string emptyList[] = {}

DBE dbeListView = listView(dbSomeDialog, 0, 600, 30, emptyList);

set (dbeListView, doSelect, doDeselect, doActivate);

Best Regards

Wolfgang

Re: ListView callback function
valikund - Wed Sep 02 07:18:00 EDT 2015

Wolfgang Uhr - Tue Sep 01 05:10:40 EDT 2015

Hi

The listView has a different callback and you have to define allways three of them:

void doSelect(DBE dbeListView, int iLine) {};

void doDeselect(DBE dbeListView, int iLine) {};

void doActivate(DBE dbeListView, int iLine) {};

string emptyList[] = {}

DBE dbeListView = listView(dbSomeDialog, 0, 600, 30, emptyList);

set (dbeListView, doSelect, doDeselect, doActivate);

Best Regards

Wolfgang

Thanks so much for the answer! Would have never found that :D

How can I mark this as an answer?

Re: ListView callback function
Wolfgang Uhr - Wed Sep 02 09:07:54 EDT 2015

valikund - Wed Sep 02 07:18:00 EDT 2015

Thanks so much for the answer! Would have never found that :D

How can I mark this as an answer?

Hi

> How can I mark this as an answer?

I think that you first have to mark the initial posting as a question.

> Thanks so much for the answer! Would have never found that :D

Oh, there is an example in the documentation, but you will find in in the chapter "Electronic Signatures".

Best regards

Wolfgang